package com.cheng.student.dao.mappers;

import com.cheng.student.beans.Student;
import com.cheng.student.beans.StudentFull;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper
{
    public Student selectStudentByNameNumber(@Param("name") String name, @Param("number")String number);

    //分页查询
    public List<StudentFull> selectStudentFull(@Param("start")int start, @Param("rows")int rows);

    public boolean insertStudentFull(StudentFull student);

    //开启事务
    public void startTransaction();
    //回滚
    public void rollBack();
    //提交
    public void commit();

    public int autocommit();
}
